{extend name="admin@public/base" /}
{block name="styles"}
<link rel="stylesheet" href="__PUBLIC__/bootstrap-select/css/bootstrap-select.min.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/jQuery-Validation-Engine-2.6.2-ciaoca/css/validationEngine.jquery.css">
<script type="text/javascript" src="__PUBLIC__/jQuery-Validation-Engine-2.6.2-ciaoca/js/jquery.validationEngine-zh_CN.js"></script>
<script type="text/javascript" src="__PUBLIC__/jQuery-Validation-Engine-2.6.2-ciaoca/js/jquery.validationEngine.min.js"></script>
{/block}
{block name="main-content"}
<div class="page-content">
    <div class="page-header">
        <h1>
            您当前操作
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                修改留言
            </small>
        </h1>
    </div>

    <div class="row">
        <div class="col-xs-12">
            <form class="form-horizontal ajaxForm" method="post" action="{:url('admin/JoinMessage/doEdit')}">
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="name"> <span class="red">*</span>姓名：  </label>
                    <div class="col-sm-10">
                        <input type="text" name="name" id="name" value="{$info.name}" class="col-xs-10 col-sm-5 validate[required]"/>
                        <input type="hidden" name="id" value="{$info.id}">
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="name"> <span class="red">*</span>电话：  </label>
                    <div class="col-sm-10">
                        <input type="number" name="phone" id="phone" value="{$info.phone}" class="col-xs-10 col-sm-5 validate[required]"/>
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="name"> <span class="red">*</span>地址：  </label>
                    <div class="col-sm-10">
                        <input type="text" name="address" id="address" value="{$info.address}" class="col-xs-10 col-sm-5 validate[required]"/>
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="name"> <span class="red">*</span>内容：  </label>
                    <div class="col-sm-10">
                        <textarea name="message" class="col-xs-10 col-sm-5 validate[required]">{$info.message}</textarea>
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                            保存
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="ace-icon fa fa-undo bigger-110"></i>
                            重置
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="scripts"}
<script src="__PUBLIC__/bootstrap-select/js/bootstrap-select.min.js"></script>
<script src="__PUBLIC__/assets/js/jquery.colorbox.min.js"></script>

<!-- ace scripts -->
<script src="__PUBLIC__/assets/js/ace-elements.min.js"></script>
<script>

</script>
{/block}